#include "QtUI/QtSelectionViewBase.hpp"
#include "QtUI/Impl/QtSelectionViewImpl.qth"

namespace QtUI
{

QtSelectionViewBase::QtSelectionViewBase( Ctrl::SelectionModel& ctrler )
	: AbsUI::SelectionView( ctrler)
	, pImpl_( new Impl::QtSelectionViewImpl( *this))
{
}

// ---------------------------------------------------------------------------------------------------------------------

void QtSelectionViewBase::changeSelection( const Ctrl::SelectionModel& rNewSelection )
{
	Q_EMIT pImpl_->selectionChangedSignal( &rNewSelection );
}

// ---------------------------------------------------------------------------------------------------------------------

QtSelectionViewBase::~QtSelectionViewBase()
{
	delete pImpl_;
}

} // namespace QtUI